﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace ExamServer.Entities
{
    public class Menus
    {
        [Display(Name = "菜单编号")]
        [Required]
        public int Id { get; set; }
        [Display(Name = "菜单名称")]
        [Required]
        public string name { get; set; }
        [Display(Name = "菜单图标")]
        public string icon { get; set; } = "";
        [Display(Name = "菜单路径")]
        public string url { get; set; } = "";
        [Display(Name = "父级菜单编号,一级菜单为0")]
        [Required]
        public int Pid { get; set; }
    }
}
